Skip to contentSkip to conversation

Unable to use a defconfig in my own kernel recipe

DISCUSSION [email protected] 1 participant 2 messages Oct 19, 2016

lore
Share & tools
lore
#0 lore raw

I'm trying to customize my kernel for use with a KaRo TX6 module. I've created my own recipe in my own layer&recipe - mylayer/recipes-kernel/linux/linux-myboard_4.4.bb, based on the existing (meta-fsl-arm-extra\recipes-kernel\linux\linux-karo_4.4bb):

SUMMARY = "Linux Kernel for my board (Ka-Ro electronics TX6 Computer-On-Modules)"

require recipes-kernel/linux/linux-imx.inc

require recipes-kernel/linux/linux-dtb.inc

DEPENDS += "lzop-native bc-native"

SRCBRANCH = "karo-tx6-mainline"

LOCALVERSION = "-2016-03-10"

SRCREV = "03f89bc99b43fcb07414557eb94e3e10002f8ce2"

KERNEL_SRC = "git://git.karo-electronics.de/karo-tx-linux.git;protocol=git"

SRC_URI = "${KERNEL_SRC};branch=${SRCBRANCH} \

           file://defconfig \

"

KERNEL_IMAGETYPE="uImage"

COMPATIBLE_MACHINE = "myboard-*"

I've also defined my own machine:

require ${BSPDIR}/sources/meta-fsl-arm-extra/conf/machine/include/tx6-karo-common.in c

SOC_FAMILY = "mx6:mx6dl:tx6"

UBOOT_MACHINE = "tx6s-8035_config"

PREFERRED_PROVIDER_virtual/kernel = "linux-myboard"

PREFERRED_PROVIDER_u-boot = "u-boot-myboard "

PREFERRED_VERSION_linux-myboard ?= "4.4%"

The build *is* using my layer&recipe, but I'm struggling to get my own defconfig (which I've placed in mylayer/recipes-kernel/linux/linux-myboard_4.4/) pulled into the kernel build - it seems to still be defaulting to KaRo's own default config

What's the missing steps for getting it to take my defconfig.?

#1 lore raw

Ah.. Sorry for the noise - worked out what I was getting wrong!

Sent: 19 October 2016 17:45
To: [email protected]
Subject: [meta-freescale] Unable to use a defconfig in my own kernel recipe

I'm trying to customize my kernel for use with a KaRo TX6 module. I've created my own recipe in my own layer&recipe - mylayer/recipes-kernel/linux/linux-myboard_4.4.bb, based on the existing (meta-fsl-arm-extra\recipes-kernel\linux\linux-karo_4.4bb):

SUMMARY = "Linux Kernel for my board (Ka-Ro electronics TX6 Computer-On-Modules)"

require recipes-kernel/linux/linux-imx.inc

require recipes-kernel/linux/linux-dtb.inc

DEPENDS += "lzop-native bc-native"

SRCBRANCH = "karo-tx6-mainline"

LOCALVERSION = "-2016-03-10"

SRCREV = "03f89bc99b43fcb07414557eb94e3e10002f8ce2"

KERNEL_SRC = "git://git.karo-electronics.de/karo-tx-linux.git;protocol=git"

SRC_URI = "${KERNEL_SRC};branch=${SRCBRANCH} \

           file://defconfig <file:///\\defconfig>  \

"

KERNEL_IMAGETYPE="uImage"

COMPATIBLE_MACHINE = "myboard-*"

I've also defined my own machine:

require ${BSPDIR}/sources/meta-fsl-arm-extra/conf/machine/include/tx6-karo-common.in c

SOC_FAMILY = "mx6:mx6dl:tx6"

UBOOT_MACHINE = "tx6s-8035_config"

PREFERRED_PROVIDER_virtual/kernel = "linux-myboard"

PREFERRED_PROVIDER_u-boot = "u-boot-myboard "

PREFERRED_VERSION_linux-myboard ?= "4.4%"

The build *is* using my layer&recipe, but I'm struggling to get my own defconfig (which I've placed in mylayer/recipes-kernel/linux/linux-myboard_4.4/) pulled into the kernel build - it seems to still be defaulting to KaRo's own default config

What's the missing steps for getting it to take my defconfig.?